import 'package:flutter/material.dart';
import 'package:goumao_app/Customs/gm_app_util.dart';

class MyDataName extends StatelessWidget {
  const MyDataName({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: GMAppUtil.navText('修改昵称'),
        elevation: 0,
        actions: <Widget>[
          IconButton(
            icon: const Text('完成'),
            onPressed: () {
              Navigator.of(context).pop();
            },
          ),
        ],
      ),
      body: Container(
        color: Colors.grey[100],
        // child: Center(child: Text('修好昵称'),),
        child: Column(
          children: <Widget>[
            Container(
              alignment: Alignment.centerLeft,
              padding: const EdgeInsets.only(left: 20, top: 10, bottom: 10),
              child: const Text(
                '请设置2-24个字符，不包括@<>/等无效字符',
                style: TextStyle(color: Color(0xff666666), fontSize: 14),
              ),
            ),
            Container(
              color: Colors.white,
              height: 80,
              padding: const EdgeInsets.only(left: 20, right: 20),
              child: const TextField(
                maxLength: 24,
                //  autofocus: true,
                decoration: InputDecoration(
                    fillColor: Colors.grey, border: InputBorder.none),
              ),
            ),
          ],
        ),
      ),
    );
  }
}
